package douyin

import "douhu_backend/internal/errors"

// Errno Controller层错误定义
type Errno struct {
	Code    int
	Message string
}

// Controller层错误码定义（引用 errors 包的错误码常量）
var (
	OK                  = &Errno{Code: errors.CodeSuccess, Message: "success"}
	ErrNoLogin          = &Errno{Code: errors.CodeDouyinNoLogin, Message: "未登入"}
	ErrParams           = &Errno{Code: errors.CodeDouyinParamsInvalid, Message: "参数错误"}
	ErrGetConn          = &Errno{Code: errors.CodeDouyinGetConnFailed, Message: "获取连接器失败"}
	ErrGetRouter        = &Errno{Code: errors.CodeDouyinGetRouterFailed, Message: "获取路由失败"}
	ErrGetCmd           = &Errno{Code: errors.CodeDouyinGetCmdFailed, Message: "获取下载链接失败"}
	ErrGetDownloadShell = &Errno{Code: errors.CodeDouyinGetShellFailed, Message: "获取下载shell失败"}
	ErrGetDownloadUri   = &Errno{Code: errors.CodeDouyinGetUriFailed, Message: "获取下载链接失败"}
	ErrGetEndpoint      = &Errno{Code: errors.CodeDouyinGetEndpointFailed, Message: "获取连接器失败"}
	ErrLimitIp          = &Errno{Code: errors.CodeDouyinIpLimitExceeded, Message: "超出IP限制"}
)
